package working;
public class Helper {
		
	public enum DiskEnum {		
		PA1_BAD_DSK { 
			public String toString() {return "pa1-bad.dsk"; }
		},
		PA1_DCS_DSK { 
			public String toString() {return "pa1-dcs.dsk";}
		},
		PA1_EMPTY_DSK {			
			public String toString() {return "pa1-empty.dsk";}
		},
		PA1_EXECS_DSK { 
			public String toString() {return "pa1-execs.dsk";}
		},
		PA1_SOLO_DSK { 
			public String toString() {return "pa1-solo.dsk";}
		},
		PA1_TREE_DSK { 
			public String toString() {return "pa1-tree.dsk";}
		},
		PA1_YDCS_DSK {
			public String toString() {return "pa1-ydcs.dsk";}
		},
		PA1_YTREE_DSK { 
			public String toString() {return "pa1-ytree.dsk";}
		}
	}
	
	public static final String LATES_FROM_ROCKHOPPER = "latest-from-rockhopper";
	public static final String FWD_SLASH = "/";

	public static String getDisk(String disk) {
		if (disk.equals(DiskEnum.PA1_BAD_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_BAD_DSK;
		} 
		else if (disk.equals(DiskEnum.PA1_DCS_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_DCS_DSK;

		} else if (disk.equals(DiskEnum.PA1_EMPTY_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_EMPTY_DSK;

		} else if (disk.equals(DiskEnum.PA1_EXECS_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_EXECS_DSK;

		} else if (disk.equals(DiskEnum.PA1_SOLO_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_SOLO_DSK;

		} else if (disk.equals(DiskEnum.PA1_TREE_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_TREE_DSK;

		} else if (disk.equals(DiskEnum.PA1_YDCS_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_YDCS_DSK;

		} else if (disk.equals(DiskEnum.PA1_YTREE_DSK)) {
			return LATES_FROM_ROCKHOPPER + Helper.FWD_SLASH + DiskEnum.PA1_YTREE_DSK;
		} else {
			return "";
		}

	}

}
